package com.leoman.image.entity.vo;

import com.leoman.image.entity.Expressions;
import com.leoman.utils.ImageUtil;

import java.util.List;

/**
 * Created by gaoll on 2015/3/3.
 */
public class ExpressionVo {

    private Long id;

    private String name;

    private String thumbnail;

    private List<Expressions> expressionList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public List<Expressions> getExpressionList() {
        for (Expressions expressions : expressionList) {
            expressions.setGifUrl(ImageUtil.clearUploadUrl(expressions.getGifUrl()));
            expressions.setGifUrl(ImageUtil.clearUploadUrl(expressions.getPngUrl()));
        }
        return expressionList;
    }

    public void setExpressionList(List<Expressions> expressionList) {
        this.expressionList = expressionList;
    }
}
